<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>table</title>
</head>
<body>
    <h1>table表格</h1>
    <table border="1" cellpadding="5" cellspacing="0" cellpadding="0">
        <!-- caption为表格的标题 -->
        <caption>班级通讯录</caption>
        <tr>
            <!-- th 表示表头 -->
            <th>姓名</th>
            <th>性别</th>
            <th>年龄</th>
            <th>所在城市</th>
        </tr>
        <tr>
            <td>LEO</td>
            <td>男</td>
            <td>18</td>
            <td>上海</td>
        </tr>
        <tr>
            <td>MARY</td>
            <td>女</td>
            <td>17</td>
            <td rowspan="2">北京</td>
        </tr>
        <tr>
            <td>JACK</td>
            <td>男</td>
            <td>19</td>
    </table>
</body>
</html>